package com.ssy.lingxi.pay.service;

import com.github.binarywang.wxpay.bean.notify.WxPayOrderNotifyResult;
import com.ssy.lingxi.pay.entity.AliPayNotifyRecord;
import com.ssy.lingxi.pay.entity.WeChatNotifyRecord;

import java.util.Map;


public interface INotifyRecordService {
    /**
     * 记录微信回调日志
     * @param wxPayOrderNotifyResult 回调信息
     * @return 解析后的回调信息
     */
    WeChatNotifyRecord saveWeChatNotifyRecord(WxPayOrderNotifyResult wxPayOrderNotifyResult);

    /**
     * 记录支付宝回调日志
     * @param params 回调信息
     */
    AliPayNotifyRecord saveAliPayNotifyRecord(Map<String, String> params);
}
